package cn.tedu.io;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;

public class OSWDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("osw.txt");
        OutputStreamWriter osw = new OutputStreamWriter(fos,"UTF-8");
        osw.write("阿弥陀佛,世尊我一心,归命尽十方,无碍光如来,愿生安乐国");
        osw.write("南无阿弥陀佛,礼敬诸佛,阿弥陀佛.");
        System.out.println("写出完毕");
        osw.close();
    }
}
